Just allocate unbound irq only from dynirq range, since
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 27 Apr 2006 08:43:49 +0000 (09:43 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 27 Apr 2006 08:43:49 +0000 (09:43 +0100)
pirq range is reserved for physical devices. This saves
unnecessary checks on pirq range.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

linux-2.6-xen-sparse/drivers/xen/core/evtchn.c

index 55b9d4286a794e556707cf5d97ef0fc8e4cf3cf0..92888ac62ae681e80d297d306ab6ffb1f0b7f628 100644 (file)
@@ -226,7 +226,8 @@ static int find_unbound_irq(void)
 {
        int irq;
 
-       for (irq = 0; irq < NR_IRQS; irq++)
+       /* Only allocate from dynirq range */
+       for (irq = DYNIRQ_BASE; irq < NR_IRQS; irq++)
                if (irq_bindcount[irq] == 0)
                        break;